<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分类列表</title>
<script src="${pageContext.request.contextPath}/js/function.js"></script>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
 
 <s:a href="listCategory" >jkjk</s:a>
	<h3>分类</h3>
	<table>
		<tr>
			<th>序号</th>
			<th>名称</th>
			<th>操作</th>
		</tr>
		<c:forEach var="category" items="${requestScope.stuList}" varStatus="status">
			<tr>
				<td>${status.count}</td>
				<td>${category.name}</td>
				<td>&nbsp; 
		<a href="
				<c:url value="/jsp/updatecategory.jsp">
					<c:param name="id" value="${category.id}"/>
				</c:url>"
			>修改</a> &nbsp; 
			<a href="
				<c:url value="delCategory">
					<c:param name="id" value="${category.id}"/>
				</c:url>"
			 	onclick="return confirm('确定删除该分类?')"
			>删除</a>
			</td>
			</tr>
			</c:forEach>
		</table>

</body>
</html>